// Copyright (c) 2008 Matthew Johnson
// Licensed under the MIT License (see license.txt)
package actionml.animation {
	import flash.events.Event;
	public class RenderEvent extends Event {
		public static const BEGIN_RENDERING = "beginRendering";
		public static const INTERRUPT_RENDERING = "interruptRendering";
		public static const COMPLETE_RENDERING = "completeRendering";
		public static const STOP_RENDERING = "stopRendering";
		
		private var _renderer:IRenderer;
		public function get renderer():IRenderer { return _renderer; }
		private var _otherRenderer:IRenderer;		
		public function get otherRenderer():IRenderer { return _otherRenderer; }	
			
		function RenderEvent(type:String, renderer:IRenderer, otherRenderer:IRenderer=null) {
			super(type, true, true);
			_renderer = renderer;
			_otherRenderer = otherRenderer;
		}
	}
}